package com.fs.cv.service;

import com.fs.cv.pojo.pojodao.Course;
import com.fs.cv.pojo.pojoview.CourseInfo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface CourseService {
    //查询所有课程信息
    List<Course> queryAll();
    //查看课程信息和专业信息
    List<CourseInfo> queryAllCourseDepartment();
    //添加课程信息
    boolean addCourseDepartment(CourseInfo courseInfo);
    //删除一门课程表
    int deleteOneCourse(Integer courseId);

    CourseInfo currentOneCourse(Integer courseId);

    Integer editOneCourse(CourseInfo courseInfo);

    PageInfo<CourseInfo> pageCourse(Integer currentPage, Integer pageSize);
}
